package com.cr.front.application.service.impl;

import com.cr.front.application.dao.mapper.ApplicationMapper;
import com.cr.front.application.pojo.entity.Application;
import com.cr.front.application.pojo.dto.ApplicationSaveParam;
import com.cr.front.application.service.ApplicationService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ApplicationServiceImpl implements ApplicationService {

    @Autowired
    private ApplicationMapper applicationMapper;

    @Override
    public void save(ApplicationSaveParam applicationSaveParam) {
        Application application = new Application();
        BeanUtils.copyProperties(applicationSaveParam,application);
        applicationMapper.insert(application);
    }
}
